package com.example.login.mapper;

import com.example.login.entity.ClassInfo;
import com.example.login.entity.Course;
import com.example.login.entity.User;
import com.example.login.entity.UserCourse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper {

    Course findByCourseName(String course_name);

    void saveInfo(UserCourse userCourse);

    List<UserCourse> findByUserNameAndCourseNameAndSemester(String userName, String course_name, String semester);

    User findByUserName(String userName);

    ClassInfo findByClassName(String className);

    User findByUsername(String userName);
}
